package com.rpc.service;

import com.rpc.dao.UserDao;
import com.rpc.entity.User;
import com.rpc.interfaces.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @auth:hp.long
 * @createTime:2016-10-09 15:17
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public int add(User user) {
        return userDao.add(user);
    }

    @Override
    public User queryByPhone(String phone) {
        return userDao.queryByPhone(phone);
    }
}
